package com.PAT.UnSatisfying;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: zjz
 * @Date: 2021/11/16/13:22
 * @Description:
 * @Target:3 个整数 A、B 和 C，请判断 A+B 是否大于 C。
 */
@SuppressWarnings("all")
public class ComparaCAndAaddB {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        int n = scanner.nextInt();

        boolean[] booleans = new boolean[n];

        int i = 0;

        while (n-->0){
            int A = scanner.nextInt();
            int B = scanner.nextInt();
            int C = scanner.nextInt();

            booleans[i++]=A+B>C?true:false;
        }


        i = 1;
        for (boolean aBoolean : booleans) {
            System.out.println("Case #"+(i++)+": " + aBoolean);
        }


    }
}
